package com.brainhealth.customer.service.impl;

import java.util.List;
import com.brainhealth.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.brainhealth.customer.mapper.SysBuriedPointResultMapper;
import com.brainhealth.customer.domain.SysBuriedPointResult;
import com.brainhealth.customer.service.ISysBuriedPointResultService;

/**
 * 埋点结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-26
 */
@Service
public class SysBuriedPointResultServiceImpl implements ISysBuriedPointResultService 
{
    @Autowired
    private SysBuriedPointResultMapper sysBuriedPointResultMapper;

    /**
     * 查询埋点结果
     * 
     * @param id 埋点结果主键
     * @return 埋点结果
     */
    @Override
    public SysBuriedPointResult selectSysBuriedPointResultById(Long id)
    {
        return sysBuriedPointResultMapper.selectSysBuriedPointResultById(id);
    }

    /**
     * 查询埋点结果列表
     * 
     * @param sysBuriedPointResult 埋点结果
     * @return 埋点结果
     */
    @Override
    public List<SysBuriedPointResult> selectSysBuriedPointResultList(SysBuriedPointResult sysBuriedPointResult)
    {
        return sysBuriedPointResultMapper.selectSysBuriedPointResultList(sysBuriedPointResult);
    }

    /**
     * 新增埋点结果
     * 
     * @param sysBuriedPointResult 埋点结果
     * @return 结果
     */
    @Override
    public int insertSysBuriedPointResult(SysBuriedPointResult sysBuriedPointResult)
    {
        sysBuriedPointResult.setCreateTime(DateUtils.getNowDate());
        return sysBuriedPointResultMapper.insertSysBuriedPointResult(sysBuriedPointResult);
    }

    /**
     * 修改埋点结果
     * 
     * @param sysBuriedPointResult 埋点结果
     * @return 结果
     */
    @Override
    public int updateSysBuriedPointResult(SysBuriedPointResult sysBuriedPointResult)
    {
        return sysBuriedPointResultMapper.updateSysBuriedPointResult(sysBuriedPointResult);
    }

    /**
     * 批量删除埋点结果
     * 
     * @param ids 需要删除的埋点结果主键
     * @return 结果
     */
    @Override
    public int deleteSysBuriedPointResultByIds(Long[] ids)
    {
        return sysBuriedPointResultMapper.deleteSysBuriedPointResultByIds(ids);
    }

    /**
     * 删除埋点结果信息
     * 
     * @param id 埋点结果主键
     * @return 结果
     */
    @Override
    public int deleteSysBuriedPointResultById(Long id)
    {
        return sysBuriedPointResultMapper.deleteSysBuriedPointResultById(id);
    }
}
